#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int counts(int n)
{
    if (n == 1)
    {
        return 1;
    }
    int count = 0;
    for (int i = 2; i <= n / 2; ++i)
    {
        if (n % i == 0)
        {
            count += counts(n / i);
        }
    }
    count += 1;
    return count;
}
int main()
{
    int n;
    while (scanf("%d", &n) != EOF)
    {
        printf("%d\n", counts(n));
    }
    return 0;
}